package com.demo.service;


import java.util.List;

import com.demo.entity.po.AiMessage;

import com.demo.entity.query.AiMessageQuery;

import com.demo.entity.vo.PaginationResultVO;

/**
 * @Description:AI对话消息表service
 * @Date:2025-03-01
 * @author：author
*/
public interface AiMessageService{

	/**
	 * 根据条件查询列表
	 */
	List<AiMessage> findListByParam(AiMessageQuery query);

	/**
	 * 根据条件查询数量
	 */
	Integer findCountByParam(AiMessageQuery query);

	/**
	 * 分页查询
	 */
	PaginationResultVO<AiMessage> findListByPage(AiMessageQuery  query);

	/**
	 * 新增
	 */
	Integer  add(AiMessage bean);

	/**
	 * 批量新增
	 */
	Integer  addBatch(List<AiMessage> listBean);

	/**
	 * 批量新增或者修改
	 */
	Integer  addOrUpdateBatch(List<AiMessage> listBean);


	/**
	 * 根据MessageId查询
	 */
	AiMessage getAiMessageByMessageId(Long messageId);

	/**
	 * 根据MessageId更新
	 */
	Integer updateAiMessageByMessageId(AiMessage bean, Long messageId);

	/**
	 * 根据MessageId删除
	 */
	Integer deleteAiMessageByMessageId(Long messageId);

}